home *** CD-ROM | disk | FTP | other *** search
- /*
- File: HighLevelTextConvert.h
-
- Contains: A Sample application for High-level text conversion
-
- Version: Technology: System 8
- Release: Daruma Developer Release 1
-
- Copyright: 1998 by Apple Computer, Inc., all rights reserved
-
- Contact: daruma@apple.com
-
- */
-
-
- #pragma once
-
- #ifndef __HIGHLEVELTEXTCONVERT__
- #define __HIGHLEVELTEXTCONVERT__
-
- #include <Types.h>
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- //========================================================================================
- // Constants
- //========================================================================================
-
- //
- // Predefined conversion types
- //
- enum {
- kConvertKanaToKanji = 1, /* Kana-Kanji conversion */
- kConvertKanjiToKana, /* Kanji-Kana conversion */
- kConvertKanjiToUtterance /* for TextToSpeech */
- };
-
- //
- // Error value
- //
- enum {
- kConvTextOverFlowErr = 128, /* source text is too long */
- kConvFailAnalysisErr, /* analysis failed */
- kConvUnknownConversionTypeErr, /* unknown conversion type */
- kConvDictionaryNotFoundErr /* dictionary not found */
- };
-
-
- //========================================================================================
- // Prototypes
- //========================================================================================
-
- extern OSStatus LaConvertPascalString( UInt16 conversionType, ConstStr255Param inStr, ByteCount *actualLength, Str255 outStr );
- extern OSStatus LaConvertText( UInt16 conversionType, ByteCount inLength, const char *inTextBuf, ByteCount maxLength, ByteCount *actualLength, char *outTextBuf );
- extern void LaFinalizeConvert( void);
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* __HIGHLEVELTEXTCONVERT__ */
-
-
-